package com.example.live.demos.web;

import com.example.live.StreamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author pengbenlei
 * @date 2024/9/13 13:47
 * @desc
 */

@Controller()
public class StreamController {

    @Autowired
    private StreamService streamService;

    @ResponseBody
    @RequestMapping("/getUrl")
    public String getUrl(){
        return streamService.generateURL();
    }

}
